home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / inspector / inISearchProcess.h < prev   
Encoding:
C/C++ Source or Header  |  2006-05-08  |  7.3 KB  |  212 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM inISearchProcess.idl
  3.  */
  4.  
  5. #ifndef __gen_inISearchProcess_h__
  6. #define __gen_inISearchProcess_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsAString; /* forward declaration */
  18.  
  19. class inISearchObserver; /* forward declaration */
  20.  
  21. class nsISupportsArray; /* forward declaration */
  22.  
  23.  
  24. /* starting interface:    inISearchProcess */
  25. #define INISEARCHPROCESS_IID_STR "d5fa765b-2448-4686-b7c1-5ff13acb0fc9"
  26.  
  27. #define INISEARCHPROCESS_IID \
  28.   {0xd5fa765b, 0x2448, 0x4686, \
  29.     { 0xb7, 0xc1, 0x5f, 0xf1, 0x3a, 0xcb, 0x0f, 0xc9 }}
  30.  
  31. class NS_NO_VTABLE inISearchProcess : public nsISupports {
  32.  public: 
  33.  
  34.   NS_DEFINE_STATIC_IID_ACCESSOR(INISEARCHPROCESS_IID)
  35.  
  36.   /* readonly attribute boolean isActive; */
  37.   NS_IMETHOD GetIsActive(PRBool *aIsActive) = 0;
  38.  
  39.   /* readonly attribute long resultCount; */
  40.   NS_IMETHOD GetResultCount(PRInt32 *aResultCount) = 0;
  41.  
  42.   /* attribute boolean holdResults; */
  43.   NS_IMETHOD GetHoldResults(PRBool *aHoldResults) = 0;
  44.   NS_IMETHOD SetHoldResults(PRBool aHoldResults) = 0;
  45.  
  46.   /* void searchSync (); */
  47.   NS_IMETHOD SearchSync(void) = 0;
  48.  
  49.   /* void searchAsync (in inISearchObserver aObserver); */
  50.   NS_IMETHOD SearchAsync(inISearchObserver *aObserver) = 0;
  51.  
  52.   /* void searchStop (); */
  53.   NS_IMETHOD SearchStop(void) = 0;
  54.  
  55.   /* boolean searchStep (); */
  56.   NS_IMETHOD SearchStep(PRBool *_retval) = 0;
  57.  
  58.   /* AString getStringResultAt (in long aIndex); */
  59.   NS_IMETHOD GetStringResultAt(PRInt32 aIndex, nsAString & _retval) = 0;
  60.  
  61.   /* long getIntResultAt (in long aIndex); */
  62.   NS_IMETHOD GetIntResultAt(PRInt32 aIndex, PRInt32 *_retval) = 0;
  63.  
  64.   /* unsigned long getUIntResultAt (in long aIndex); */
  65.   NS_IMETHOD GetUIntResultAt(PRInt32 aIndex, PRUint32 *_retval) = 0;
  66.  
  67. };
  68.  
  69. /* Use this macro when declaring classes that implement this interface. */
  70. #define NS_DECL_INISEARCHPROCESS \
  71.   NS_IMETHOD GetIsActive(PRBool *aIsActive); \
  72.   NS_IMETHOD GetResultCount(PRInt32 *aResultCount); \
  73.   NS_IMETHOD GetHoldResults(PRBool *aHoldResults); \
  74.   NS_IMETHOD SetHoldResults(PRBool aHoldResults); \
  75.   NS_IMETHOD SearchSync(void); \
  76.   NS_IMETHOD SearchAsync(inISearchObserver *aObserver); \
  77.   NS_IMETHOD SearchStop(void); \
  78.   NS_IMETHOD SearchStep(PRBool *_retval); \
  79.   NS_IMETHOD GetStringResultAt(PRInt32 aIndex, nsAString & _retval); \
  80.   NS_IMETHOD GetIntResultAt(PRInt32 aIndex, PRInt32 *_retval); \
  81.   NS_IMETHOD GetUIntResultAt(PRInt32 aIndex, PRUint32 *_retval); 
  82.  
  83. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  84. #define NS_FORWARD_INISEARCHPROCESS(_to) \
  85.   NS_IMETHOD GetIsActive(PRBool *aIsActive) { return _to GetIsActive(aIsActive); } \
  86.   NS_IMETHOD GetResultCount(PRInt32 *aResultCount) { return _to GetResultCount(aResultCount); } \
  87.   NS_IMETHOD GetHoldResults(PRBool *aHoldResults) { return _to GetHoldResults(aHoldResults); } \
  88.   NS_IMETHOD SetHoldResults(PRBool aHoldResults) { return _to SetHoldResults(aHoldResults); } \
  89.   NS_IMETHOD SearchSync(void) { return _to SearchSync(); } \
  90.   NS_IMETHOD SearchAsync(inISearchObserver *aObserver) { return _to SearchAsync(aObserver); } \
  91.   NS_IMETHOD SearchStop(void) { return _to SearchStop(); } \
  92.   NS_IMETHOD SearchStep(PRBool *_retval) { return _to SearchStep(_retval); } \
  93.   NS_IMETHOD GetStringResultAt(PRInt32 aIndex, nsAString & _retval) { return _to GetStringResultAt(aIndex, _retval); } \
  94.   NS_IMETHOD GetIntResultAt(PRInt32 aIndex, PRInt32 *_retval) { return _to GetIntResultAt(aIndex, _retval); } \
  95.   NS_IMETHOD GetUIntResultAt(PRInt32 aIndex, PRUint32 *_retval) { return _to GetUIntResultAt(aIndex, _retval); } 
  96.  
  97. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  98. #define NS_FORWARD_SAFE_INISEARCHPROCESS(_to) \
  99.   NS_IMETHOD GetIsActive(PRBool *aIsActive) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsActive(aIsActive); } \
  100.   NS_IMETHOD GetResultCount(PRInt32 *aResultCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResultCount(aResultCount); } \
  101.   NS_IMETHOD GetHoldResults(PRBool *aHoldResults) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHoldResults(aHoldResults); } \
  102.   NS_IMETHOD SetHoldResults(PRBool aHoldResults) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHoldResults(aHoldResults); } \
  103.   NS_IMETHOD SearchSync(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SearchSync(); } \
  104.   NS_IMETHOD SearchAsync(inISearchObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->SearchAsync(aObserver); } \
  105.   NS_IMETHOD SearchStop(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SearchStop(); } \
  106.   NS_IMETHOD SearchStep(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SearchStep(_retval); } \
  107.   NS_IMETHOD GetStringResultAt(PRInt32 aIndex, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringResultAt(aIndex, _retval); } \
  108.   NS_IMETHOD GetIntResultAt(PRInt32 aIndex, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIntResultAt(aIndex, _retval); } \
  109.   NS_IMETHOD GetUIntResultAt(PRInt32 aIndex, PRUint32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUIntResultAt(aIndex, _retval); } 
  110.  
  111. #if 0
  112. /* Use the code below as a template for the implementation class for this interface. */
  113.  
  114. /* Header file */
  115. class inSearchProcess : public inISearchProcess
  116. {
  117. public:
  118.   NS_DECL_ISUPPORTS
  119.   NS_DECL_INISEARCHPROCESS
  120.  
  121.   inSearchProcess();
  122.  
  123. private:
  124.   ~inSearchProcess();
  125.  
  126. protected:
  127.   /* additional members */
  128. };
  129.  
  130. /* Implementation file */
  131. NS_IMPL_ISUPPORTS1(inSearchProcess, inISearchProcess)
  132.  
  133. inSearchProcess::inSearchProcess()
  134. {
  135.   /* member initializers and constructor code */
  136. }
  137.  
  138. inSearchProcess::~inSearchProcess()
  139. {
  140.   /* destructor code */
  141. }
  142.  
  143. /* readonly attribute boolean isActive; */
  144. NS_IMETHODIMP inSearchProcess::GetIsActive(PRBool *aIsActive)
  145. {
  146.     return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148.  
  149. /* readonly attribute long resultCount; */
  150. NS_IMETHODIMP inSearchProcess::GetResultCount(PRInt32 *aResultCount)
  151. {
  152.     return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154.  
  155. /* attribute boolean holdResults; */
  156. NS_IMETHODIMP inSearchProcess::GetHoldResults(PRBool *aHoldResults)
  157. {
  158.     return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160. NS_IMETHODIMP inSearchProcess::SetHoldResults(PRBool aHoldResults)
  161. {
  162.     return NS_ERROR_NOT_IMPLEMENTED;
  163. }
  164.  
  165. /* void searchSync (); */
  166. NS_IMETHODIMP inSearchProcess::SearchSync()
  167. {
  168.     return NS_ERROR_NOT_IMPLEMENTED;
  169. }
  170.  
  171. /* void searchAsync (in inISearchObserver aObserver); */
  172. NS_IMETHODIMP inSearchProcess::SearchAsync(inISearchObserver *aObserver)
  173. {
  174.     return NS_ERROR_NOT_IMPLEMENTED;
  175. }
  176.  
  177. /* void searchStop (); */
  178. NS_IMETHODIMP inSearchProcess::SearchStop()
  179. {
  180.     return NS_ERROR_NOT_IMPLEMENTED;
  181. }
  182.  
  183. /* boolean searchStep (); */
  184. NS_IMETHODIMP inSearchProcess::SearchStep(PRBool *_retval)
  185. {
  186.     return NS_ERROR_NOT_IMPLEMENTED;
  187. }
  188.  
  189. /* AString getStringResultAt (in long aIndex); */
  190. NS_IMETHODIMP inSearchProcess::GetStringResultAt(PRInt32 aIndex, nsAString & _retval)
  191. {
  192.     return NS_ERROR_NOT_IMPLEMENTED;
  193. }
  194.  
  195. /* long getIntResultAt (in long aIndex); */
  196. NS_IMETHODIMP inSearchProcess::GetIntResultAt(PRInt32 aIndex, PRInt32 *_retval)
  197. {
  198.     return NS_ERROR_NOT_IMPLEMENTED;
  199. }
  200.  
  201. /* unsigned long getUIntResultAt (in long aIndex); */
  202. NS_IMETHODIMP inSearchProcess::GetUIntResultAt(PRInt32 aIndex, PRUint32 *_retval)
  203. {
  204.     return NS_ERROR_NOT_IMPLEMENTED;
  205. }
  206.  
  207. /* End of implementation class template. */
  208. #endif
  209.  
  210.  
  211. #endif /* __gen_inISearchProcess_h__ */
  212.